<template>

	<view id="page_content">

		

	</view>




</template>

<script>
	import nav from "@/components/nav/head_nav.vue"
	export default {
		components:{
			nav
		},
		data() {
			return {
				show: false,
				showLanguage: false,
				select: 1,
				avatar: null,
				languageList: [{
						name: 'English',
						url: "/static/images/entryscreen/usa.svg"
					},
					{
						name: '简体中文',
						url: "/static/images/entryscreen/china.svg"
					},
					{
						name: '繁體中文',
						url: "/static/images/entryscreen/hongkong.svg"
					},
					{
						name: '日本語',
						url: "/static/images/entryscreen/japan.svg"
					},
					{
						name: '한국어',
						url: "/static/images/entryscreen/southkorea.svg"
					},
					{
						name: 'ภาษาไทย',
						url: "/static/images/entryscreen/thailand.svg"
					},
					{
						name: 'Bahasa Melayu',
						url: "/static/images/entryscreen/malaysia.svg"
					},
					{
						name: 'tiếng việt',
						url: "/static/images/entryscreen/vietnam.svg"
					},
					{
						name: 'Bahasa Indonesia',
						url: "/static/images/entryscreen/indonesia.svg"
					},
					{
						name: 'العربية',
						url: "/static/images/entryscreen/saudi.svg"
					},
					{
						name: 'português',
						url: "/static/images/entryscreen/brazil.svg"
					},
					{
						name: 'Русский',
						url: "/static/images/entryscreen/russia.svg"
					},
					{
						name: 'Deutsch',
						url: "/static/images/entryscreen/germany.svg"
					},
					{
						name: 'français',
						url: "/static/images/entryscreen/france.svg"
					},
					{
						name: 'italiano',
						url: "/static/images/entryscreen/italy.svg"
					},
					{
						name: 'Türkçe',
						url: "/static/images/entryscreen/turkey.svg"
					},
					{
						name: 'Español',
						url: "/static/images/entryscreen/spain.svg"
					},
					{
						name: 'Język polski',
						url: "/static/images/entryscreen/poland.svg"
					},
					{
						name: 'हिन्दी',
						url: "/static/images/entryscreen/india.svg"
					},
					{
						name: 'Українська',
						url: "/static/images/entryscreen/ukraine.svg"
					}
				],
			};
		},
		methods: {
			setAvatar() {
				this.show = true
			},
			setLanguage() {
				this.showLanguage = !this.showLanguage
			},
			close() {
				uni.navigateBack()
			},
			selectLanguage(index) {
				this.select = index
				this.showLanguage = false
			},
			closeUpload() {
				this.show = false
			},
			changeAvatar() {
				let that = this;
				uni.chooseImage({
					sizeType: ['original', 'compressed'],
					sourceType: ['album', 'camera'],
					count: 1,
					success: (res) => {
						let max_size = 5 * 1024 * 1024;
						// #ifdef H5
						if (res.tempFiles[0].type.indexOf("image") < 0) {
							that.tui.toast("请选择图片类型的文件");
							return;
						}
						// #endif

						if (res.tempFiles[0].size >= max_size) {
							that.tui.toast("上传图片不能超过5M");

						}

						this.avatar = res.tempFilePaths[0]
						this.show=false 
						// let token = that.tui.getToken();

						// let datas={
						// 	token: token,
						// };

						// let uper = that.tui.uploadFile('user',datas,res.tempFilePaths[0],'uploadHeadImg');
						// Promise.resolve(uper).then((value)=>{

						//    if(value.code==10000){
						//      	that.userinfo.user_headimg = value.data.avator;
						// 		that.tui.setUserInfoData(that.userinfo);
						//    }
						// })
					},
					fail: (err) => {
						// #ifdef APP-PLUS
						if (err['code'] && err.code !== 0 && that.sourceTypeIndex === 2) {
							that.checkPermission(err.code);
						}
						// #endif
						// #ifdef MP
						// #endif
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	@import '../index/css/index1.css';
	@import '../index/css/index2.css';
	@import '../index/css/index3.css';
	@import '../index/css/index4.css';
	@import '../index/css/index5.css';
	@import '../index/css/index6.css';
	@import '../index/css/index7.css';
	@import '../index/css/index8.css';
	@import '../index/css/index9.css';
	@import '../index/css/index10.css';

	@import '../index/css/index11.css';
	@import '../index/css/index12.css';
	@import '../index/css/index13.css';
	@import '../index/css/index14.css';
	@import '../index/css/index15.css';
	@import '../index/css/index16.css';
	@import '../index/css/index17.css';
	@import '../index/css/index18.css';
	@import '../index/css/index19.css';
	@import '../index/css/index20.css';

	@import '../index/css/index21.css';
	@import '../index/css/index22.css';
	@import '../index/css/index23.css';
	@import '../index/css/index24.css';
	@import '../index/css/index25.css';
	@import '../index/css/index26.css';
	@import '../index/css/index27.css';
	@import '../index/css/index28.css';
	@import '../index/css/index29.css';
	@import '../index/css/index30.css';

	@import '../index/css/index31.css';
	@import '../index/css/index32.css';
	@import '../index/css/index33.css';
	@import '../index/css/index34.css';
	@import '../index/css/index35.css';
	@import '../index/css/index36.css';
	@import '../index/css/index37.css';
	@import '../index/css/index38.css';
	@import '../index/css/index39.css';
	@import '../index/css/index40.css';

	page {
		background-color: #0c0d13;
		color: #fff;
		font-family: "Barlow Semi Condensed", sans-serif;
		font-size: 1.3vw;
		margin: 0;
		padding: 0;
	}
</style>